package com.example.demo.pageinfo;

import org.springframework.http.HttpHeaders;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author whn
 */
public class PageInfoUtil {

    public static PageInfo initPageInfo(HttpServletRequest request) {
        String range = request.getHeader("Range");
        PageInfo pageInfo = null;
        if (range != null) {
            pageInfo = new PageInfo(range);
        }
        return pageInfo;
    }
}
